package logic.blocks;

import logic.characters.Player;
import logic.enemies.Enemy;
import logic.pruebas.GamePanel;

/**
 * @author Unai
 * Bloque que finaliza el nivel
 *
 */
public class EndBlock extends Block{
	private static final long serialVersionUID = 4797375652897939694L;

	/**
	 * @param x
	 * @param y
	 * @param panel
	 * @param nomImg
	 * @param player
	 */
	public EndBlock(float x, float y, GamePanel panel, String nomImg,
			Player player) {
		super(x, y, panel, nomImg, player);
		// TODO Auto-generated constructor stub
	}

	/* (non-Javadoc)
	 * @see logic.blocks.Block#upImpact(logic.characters.Player)
	 * Finaliza el nivel
	 */
	@Override
	public void upImpact(Player player) {
		player.endReached = true;
	}

	/* (non-Javadoc)
	 * @see logic.blocks.Block#downImpact(logic.characters.Player)
	 * Finaliza el nivel
	 */
	@Override
	public void downImpact(Player player) {
		player.endReached = true;
	}

	/* (non-Javadoc)
	 * @see logic.blocks.Block#leftImpact(logic.characters.Player)
	 * Finaliza el nivel
	 */
	@Override
	public void leftImpact(Player player) {
		player.endReached = true;
	}

	/* (non-Javadoc)
	 * @see logic.blocks.Block#rightImpact(logic.characters.Player)
	 * Finaliza el nivel
	 */
	@Override
	public void rightImpact(Player player) {
		player.endReached = true;
	}

	@Override
	public void upImpact(Enemy enemy) {
		// Nada
		
	}

	@Override
	public void downImpact(Enemy enemy) {
		// Nada
		
	}

	@Override
	public void leftImpact(Enemy enemy) {
		// Nada
		
	}

	@Override
	public void rightImpact(Enemy enemy) {
		// Nada
		
	}

}
